<template>
	<view class="fixtop">
		<fixtop>
			<template #l>
				<view class="fixtop-back" @click="back">
					<view class="iconfont icon-jiantouyou"></view>
				</view>
			</template>
			<template #c>
				<view class="fixtop-tit">开店详细信息</view>
			</template>
		</fixtop>
	</view>
	<view class="" :style="{height:heightcon}"></view>
	<view class="boxcon" v-if="datadata">
		<view class="box-tip">
			空的开店申请已经提交成功，<br />
			我们将在1-3个工作日内完成线上市核工作，请您甜心特候，并留意申核进程.
		</view>
		<view class="con-userinfo bor-shadow">
			<view class="l">
				<view class="l-t">负责人：{{JSON.parse(datadata.userinfo).name}}</view>
				<view class="l-b">手机号：+{{datadata.phone}}</view>
			</view>
			<view class="r">
				<view class="iconfont icon-shenhezhong"></view>
			</view>
		</view>
		<view class="shopper-lx bor-shadow">
			<view class="shopper-lx-item">
				店铺类型：店铺类型
			</view>
			<view class="shopper-lx-item">
				<view class="shopper-lx-logo">主营</view>
				{{datadata.lx}}
			</view>
			<view class="shopper-lx-item">
				<view class="shopper-lx-logo fu-logo">辅营</view>
				{{datadata.fzlx}}
			</view>
		</view>
		<view class="shopper-dname bor-shadow">
			<view class="shopper-dname-item" style="margin-bottom: 10rpx;">中文店名：{{datadata.dname}}</view>
			<view class="shopper-dname-item">英文店名：{{datadata.dymname}}</view>
			<view class="shopper-dname-item centerd">所在地：{{datadata.address}}</view>
			<view class="shopper-dname-item centerd">详细地址：{{datadata.xxaddress}}</view>
		</view>
		<view class="userinfo-sfz bor-shadow">
			<view class="userinfo-sfz-img">
				<image :src="'http://127.0.0.1:3006/img/'+datadata.img" mode="aspectFill"></image>
			</view>
			<view class="userinfo-sfz-titi">证件照</view>
		</view>
		<view class="yyzz bor-shadow">
			<view class="yyzz-item">证件名称：营业执照</view>
			<view class="yyzz-item">证件编号：{{JSON.parse(datadata.shopinfo).yyzz.index}}</view>
			<view class="yyzz-item">有效期：{{JSON.parse(datadata.shopinfo).yyzz.time[0]+'至'+JSON.parse(datadata.shopinfo).yyzz.time[1]}}</view>
		</view>
		<view class="yyzz bor-shadow">
			<view class="yyzz-item">证件名称：经许可证</view>
			<view class="yyzz-item">证件编号：{{JSON.parse(datadata.shopinfo).yyyk.index}}</view>
			<view class="yyzz-item">有效期：{{JSON.parse(datadata.shopinfo).yyyk.time[0]+'至'+JSON.parse(datadata.shopinfo).yyyk.time[1]}}</view>
		</view>
		<view class="bu" @click="resend" v-if="datadata.status==4">
			重新申请
		</view>
	</view>
</template>



<script setup>
	import {ref} from 'vue'
	import {onLoad} from '@dcloudio/uni-app'
	import fixtop from '@/components/fixtop/fixtop.vue'
	import {
		getstatusheight,
		gettitleheight
	} from '@/utils/getsysteminfo.js'
	const datadata=ref()
	const heightcon = getstatusheight() + gettitleheight() + 'px'
	onLoad(e=>{
		datadata.value=JSON.parse(e.data)
	})
	const back=()=>{
		uni.navigateBack()
	}
	const resend = () => {
		uni.navigateTo({
			url: "/pages/application/application"
		})
	}
</script>

<style lang="scss" scoped>
	.bu {
		width: 90%;
		height: 80rpx;
		background-color: #ff6e53;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 25rpx;
		font-weight: 700;
		border-radius: 80rpx;
		color: #fff;
		margin:10rpx auto;
	}
	.fixtop {
		width: 100%;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 99;
		background-color: #ff644d;
		padding: 0 30rpx;

		.fixtop-back {
			height: 100%;
			width: 100%;
			display: flex;
			align-items: center;

			.iconfont {
				color: #fff;
				font-size: 25rpx;
				transform: rotate(180deg);
			}
		}

		.fixtop-tit {
			height: 100%;
			width: 100%;
			display: flex;
			align-items: center;
			justify-content: center;
			color: #fff;
			font-size: 25rpx;
		}
	}

	.boxcon {
		width: 100%;
		height: calc(100vh - v-bind(heightcon));
		background-color: #f5f5f5;
		padding: 30rpx;
		overflow: auto;

		.bor-shadow {
			box-shadow: 0 0 1rpx 1rpx rgba(0, 0, 0, 0.02);
		}

		.yyzz {
			height: 200rpx;
			width: 100%;
			background-color: #fff;
			border-radius: 15rpx;
			margin-top: 30rpx;
			display: flex;
			flex-direction: column;
padding: 15rpx 20rpx;
			>view {
				flex: 1;
				font-size: 25rpx;
				font-weight: 700;
				display: flex;
				align-items: center;
			}
		}

		.userinfo-sfz {
			width: 100%;
			height: 600rpx;
			margin-top: 30rpx;
			background-color: #fff;
			border-radius: 15rpx;
			display: flex;
			flex-direction: column;
			padding: 30rpx;
			gap: 20rpx;

			.userinfo-sfz-img {
				width: 100%;

				image {
					width: 100%;
					border-radius: 15rpx;
				}
			}

			.userinfo-sfz-titi {
				display: flex;
				align-items: center;
				justify-content: center;
				font-size: 25rpx;
				font-weight: 700;
			}
		}

		.shopper-dname {
			width: 100%;
			height: 350rpx;
			background-color: #fff;
			border-radius: 15rpx;
			padding: 15rpx 20rpx;
			margin-top: 30rpx;
			display: flex;
			flex-direction: column;
			overflow: hidden;

			.centerd {
				display: flex;
				align-items: center;
			}

			>view {
				flex: 1;
				width: 100%;
				font-size: 25rpx;
				font-weight: 700;
				word-break: break-all;
				display: -webkit-box;
				-webkit-line-clamp: 2;
				-webkit-box-orient: vertical;
				overflow: hidden;
				line-height: 38rpx;
			}
		}

		.shopper-lx {
			height: 250rpx;
			width: 100%;
			background-color: #fff;
			border-radius: 15rpx;
			display: flex;
			flex-direction: column;
			padding: 15rpx 20rpx;
			font-size: 25rpx;
			font-weight: 700;

			>view {
				flex: 1;
				display: flex;
				align-items: center;

				.shopper-lx-logo {
					height: 50%;
					width: 10%;
					border: 5rpx solid #ff644d;
					color: #ff644d;
					border-radius: 10rpx;
					display: flex;
					align-items: center;
					justify-content: center;
					margin-right: 15rpx;
					font-size: 23rpx;
				}

				.fu-logo {
					color: #7b7b7b;
					border-color: #7b7b7b;
				}
			}
		}

		.box-tip {
			width: 100%;
			height: 10%;
			font-size: 22rpx;
			color: #7b7b7b;
			line-height: 36rpx;
		}

		.con-userinfo {
			height: 170rpx;
			margin: 0 0 30rpx 0;
			background-color: #fff;
			border-radius: 15rpx;
			padding: 15rpx 20rpx;
			display: flex;

			.l {
				height: 100%;
				width: 75%;
				display: flex;
				flex-direction: column;

				>view {
					height: 50%;
					width: 100%;
					display: flex;
					align-items: center;
					font-size: 25rpx;
					font-weight: 700;
				}

			}

			.r {
				height: 100%;
				width: 25%;
				display: flex;
				align-items: center;
				justify-content: center;

				.iconfont {
					color: blue;
					font-size: 100rpx
				}
			}
		}
	}
</style>